-- GENERATED SPELL FOR [Smolderthorn Shadow Hunter] --


function spell0_9265(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(15582,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9265', 564, 1)
end

function spell1_9265(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(12540,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9265', 4322, 1)
end

function spell2_9265(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(15614,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9265', 6252, 1)
end

function Sorts_9265(pUnit, Event)
local choix_sorts_9265 = math.random(0, 2)
if choix_sorts_9265 == 0 then
pUnit:RegisterEvent('spell0_9265', 1, 1)
end
if choix_sorts_9265 == 1 then
pUnit:RegisterEvent('spell1_9265', 1, 1)
end
if choix_sorts_9265 == 2 then
pUnit:RegisterEvent('spell2_9265', 1, 1)
end
end

function mob9265_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9265', math.random(1500, 3000), 1)
end

function mob9265_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9265_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9265_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9265, 1, 'mob9265_Action')
RegisterUnitEvent(9265, 2, 'mob9265_Leave')
RegisterUnitEvent(9265, 3, 'mob9265_Kill')
RegisterUnitEvent(9265, 4, 'mob9265_Die')
